Skip to content

Cover real Rails observer initialization and reload lifecycle - #11

Merged
dblock merged 1 commit into
masterfrom
dblock/coverage
Oct 18, 2026
Merged

dblock merged 1 commit into
masterfrom
dblock/coverage

Conversation

@dblock

@dblock dblock commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Replace the inline subprocess lifecycle script with an Appraisal-managed Rails integration suite and a fixture application. Appraisals defines supported Mongoid 4–9 / Rails 4.2–8.1 dependency pairs and generates the Gemfiles used by CI.

The default rake task runs existing unit/generator examples and the integration suite in separate RSpec processes. Integration examples boot the app, verify observer configuration and persisted callbacks, then trigger Rails reloading and assert both model and observer classes are replaced and callbacks still persist. No fake Rails classes, instrumentation of instantiate_observers, constant stubbing, or version-file reloads.

Verified complete suites on Rails 8.1/Mongoid 9 and Rails 4.2/Mongoid 4 with compatible MongoDB services. Coverage combines genuine unit/integration executions; no source exclusions or narrowed library tracking. Previous 100% reports are obsolete after removing artificial version reloads.

Prepared by an AI on behalf of @dblock.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@coveralls

coveralls commented Oct 17, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 94.253% (+9.2%) from 85.057% — dblock/coverage into master

@dblock
dblock force-pushed the dblock/coverage branch 4 times, most recently from 682efb0 to 84f99e7 Compare October 18, 2026 13:32
Boot an isolated minimal Rails application, verify configured observers instantiate at startup and on reload, and confirm callbacks still run against a persisted document. Include separate process coverage and a real standalone version load without altering tracked sources.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock merged commit 08445f6 into master Oct 18, 2026
18 checks passed
@dblock
dblock deleted the dblock/coverage branch October 18, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants